<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>
    // //向对象中添加方法up down
    // let game={}
    // //声明一个对象
    // let methods={
    //     up:Symbol(),
    //     down:Symbol(),
    // }
    // game[methods.up]=function(){
    //     console.log("我可以改变形状")
    // }
    // game[methods.down]=function(){
    //     console.log("我可以快速下降")
    // }
    // console.log(game)


    let youxi={
        name:"狼人杀",
        [Symbol('say')]:function(){
            console.log("发言")
        },
        [Symbol('bom')]:function(){
            console.log("爆炸")
        }
    }
    console.log(youxi)
</script>
</html>